#include "UIElement.h"

void UIElement::Focus()
{
	if (this->inFocus) return;
	this->inFocus = true;
	for (callback_function cb : enterFocusEvents)
		cb(this);
}

void UIElement::Unfocus()
{
	if (!this->inFocus) return;
	this->inFocus = false;
	for (callback_function cb : leaveFocusEvents)
		cb(this);
}
